home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Back2Front ƒ / Back2Front.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  1.5 KB  |  59 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: Back2Front.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.      3/22/94 - dmh - Created.
  11.  
  12.     (Note: labels are in the Mark menu.)
  13.     
  14. __________________________________________________________*/
  15.  
  16. #include <Types.h>
  17. #include <Errors.h>
  18. #include <Resources.h>
  19. #include <ToolUtils.h>
  20. #include <GXExceptions.h>
  21. #include <Collections.h>
  22. #include <Messages.h>
  23. #include <PrintingManager.h>
  24. #include <PrintingMessages.h>
  25.  
  26.  
  27. #define kCreator                    'B2Fr'            /* Our creator type.            */
  28. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  29.  
  30. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  31. #define kExtensionTurnedOff            0                /* We're turned on.                */
  32. #define kExtensionTurnedOn            1                /* We're turned off.            */
  33.  
  34. #define kDefaultSetting            kExtensionTurnedOff    /* We're off by default.        */
  35.  
  36.  
  37. typedef struct ExtensionCollection                    /* This is our collection type.    */
  38. {
  39.     char    extTurnedOn;                            /* On/off panel item value.        */
  40.     char    fillByte;
  41. } ExtensionCollection;
  42.  
  43.  
  44. // Prototypes:
  45.  
  46. extern    long A5Size (void);                            /* We need these to set up        */
  47. extern    void A5Init (void *);                        /* our A5 world.                */
  48.  
  49. OSErr    InitGlobalData(void);
  50. OSErr    NewInitialize(void);
  51. OSErr    NewShutDown(void);
  52. OSErr    NewImageDocument(gxSpoolFile aSpoolFile, void *imageData);
  53. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  54. OSErr    SetUpPrintPanel(void);
  55. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  56.                              OSType collectType, short collectID);
  57.  
  58.  
  59.